﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CloudClass.Models;

namespace CloudClass.ViewModels
{
    public class NotesViewModel
    {
        public List<NotesAbout> NotesAboutList { get; set; }

        public CourseInfo CourseInfo { get; set; }

        /// <summary>
        /// 是否参加该课程0否1是
        /// </summary>
        public int IsJoin { get; set; }

        /// <summary>
        /// 发布者
        /// </summary>
        public string Publisher { get; set; }

        /// <summary>
        /// 发布者头像
        /// </summary>
        public string ImgUrl { get; set; }

        /// <summary>
        /// 发布者描述
        /// </summary>
        public string PublisherDesc { get; set; }

        /// <summary>
        /// 课时列表
        /// </summary>
        public List<Lesson> LessonList { get; set; }

        public dynamic Pager { get; set; }

        public int LessonID { get; set; }
        
    }

    public class AddNoteLessonList
    {
        public List<Lesson> lessons { get; set; }

        public CourseInfo CourseInfo { get; set; }
    }

    public class NotesAbout
    {
        /// <summary>
        /// 笔记
        /// </summary>
        public Notes Notes { get; set; }

        /// <summary>
        /// 顶
        /// </summary>
        public int TopCount { get; set; }

        /// <summary>
        /// 收藏数
        /// </summary>
        public int CollectCount { get; set; }

        /// <summary>
        /// 评论数
        /// </summary>
        public int CommentCount { get; set; }
    }
}